home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / close.tex < prev    next >
LaTeX Document  |  1994-05-01  |  760 b   |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: close.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 63 6c 6f 73 65 20 2d |\section|{close -|
|00000010| 2d 2d 20 43 6c 6f 73 65 | 20 61 20 46 69 6c 65 7d |-- Close| a File}|
|00000020| 0d 5c 6c 61 62 65 6c 7b | 66 6e 3a 63 6c 6f 73 65 |.\label{|fn:close|
|00000030| 7d 0d 5c 69 6e 64 65 78 | 7b 63 6c 6f 73 65 28 29 |}.\index|{close()|
|00000040| 7d 0d 5c 69 6e 64 65 78 | 7b 63 6c 6f 73 65 20 61 |}.\index|{close a|
|00000050| 20 66 69 6c 65 7d 0d 5c | 69 6e 64 65 78 7b 66 69 | file}.\|index{fi|
|00000060| 6c 65 21 63 6c 6f 73 65 | 7d 0d 5c 62 65 67 69 6e |le!close|}.\begin|
|00000070| 7b 72 61 69 6c 7d 0d 43 | 6c 6f 73 65 20 3a 20 27 |{rail}.C|lose : '|
|00000080| 63 6c 6f 73 65 27 20 27 | 28 27 20 53 74 72 69 6e |close' '|(' Strin|
|00000090| 67 20 27 29 27 20 3b 0d | 5c 65 6e 64 7b 72 61 69 |g ')' ;.|\end{rai|
|000000a0| 6c 7d 0d 0d 5c 76 65 72 | 62 2b 63 6c 6f 73 65 2b |l}..\ver|b+close+|
|000000b0| 20 74 61 6b 65 73 20 61 | 20 73 69 6e 67 6c 65 20 | takes a| single |
|000000c0| 73 74 72 69 6e 67 20 61 | 72 67 75 6d 65 6e 74 2c |string a|rgument,|
|000000d0| 20 61 6e 64 20 74 72 69 | 65 73 20 74 6f 20 63 6c | and tri|es to cl|
|000000e0| 6f 73 65 20 74 68 65 0d | 66 69 6c 65 20 6e 61 6d |ose the.|file nam|
|000000f0| 65 64 20 62 79 20 74 68 | 65 20 73 74 72 69 6e 67 |ed by th|e string|
|00000100| 2e 20 20 49 74 20 72 65 | 74 75 72 6e 73 20 24 31 |. It re|turns $1|
|00000110| 24 2c 20 6f 72 20 74 72 | 75 65 2c 20 69 66 20 74 |$, or tr|ue, if t|
|00000120| 68 65 20 66 69 6c 65 20 | 77 61 73 0d 63 6c 6f 73 |he file |was.clos|
|00000130| 65 64 2e 20 20 49 74 20 | 72 65 74 75 72 6e 73 20 |ed. It |returns |
|00000140| 24 30 24 2c 20 6f 72 20 | 66 61 6c 73 65 2c 20 69 |$0$, or |false, i|
|00000150| 66 20 74 68 65 20 66 69 | 6c 65 20 63 6f 75 6c 64 |f the fi|le could|
|00000160| 20 6e 6f 74 20 62 65 20 | 63 6c 6f 73 65 64 2e 0d | not be |closed..|
|00000170| 0d 59 6f 75 20 68 61 76 | 65 20 74 6f 20 63 6c 6f |.You hav|e to clo|
|00000180| 73 65 20 61 20 66 69 6c | 65 20 62 65 74 77 65 65 |se a fil|e betwee|
|00000190| 6e 20 77 72 69 74 69 6e | 67 20 74 6f 20 69 74 2c |n writin|g to it,|
|000001a0| 20 61 6e 64 20 72 65 61 | 64 69 6e 67 20 66 72 6f | and rea|ding fro|
|000001b0| 6d 20 69 74 2e 0d 0d 5c | 70 61 72 61 67 72 61 70 |m it...\|paragrap|
|000001c0| 68 7b 45 78 61 6d 70 6c | 65 7d 0d 5c 69 6e 64 65 |h{Exampl|e}.\inde|
|000001d0| 78 7b 65 78 61 6d 70 6c | 65 20 6f 66 20 63 6c 6f |x{exampl|e of clo|
|000001e0| 73 65 28 29 7d 0d 5c 69 | 6e 64 65 78 7b 63 6c 6f |se()}.\i|ndex{clo|
|000001f0| 73 65 28 29 21 65 78 61 | 6d 70 6c 65 7d 0d 5c 62 |se()!exa|mple}.\b|
|00000200| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0d 3e |egin{ver|batim}.>|
|00000210| 20 63 6c 6f 73 65 28 22 | 4e 6f 20 73 75 63 68 20 | close("|No such |
|00000220| 46 69 6c 65 22 29 0d 20 | 20 20 20 20 20 20 20 30 |File"). | 0|
|00000230| 0d 3e 20 77 72 69 74 65 | 28 22 74 6d 70 5f 66 69 |.> write|("tmp_fi|
|00000240| 6c 65 5f 6e 61 6d 65 22 | 2c 72 61 6e 64 28 32 2c |le_name"|,rand(2,|
|00000250| 32 29 29 0d 20 20 20 20 | 20 20 20 20 31 0d 3e 20 |2)). | 1.> |
|00000260| 63 6c 6f 73 65 28 22 74 | 6d 70 5f 66 69 6c 65 5f |close("t|mp_file_|
|00000270| 6e 61 6d 65 22 29 0d 20 | 20 20 20 20 20 20 20 31 |name"). | 1|
|00000280| 0d 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0d |.\end{ve|rbatim}.|
|00000290| 0d 53 65 65 20 61 6c 73 | 6f 3a 20 50 61 67 65 7e |.See als|o: Page~|
|000002a0| 5c 70 61 67 65 72 65 66 | 7b 66 6e 3a 72 65 61 64 |\pageref|{fn:read|
|000002b0| 7d 20 5c 76 65 72 62 2b | 72 65 61 64 28 29 2b 2c |} \verb+|read()+,|
|000002c0| 0d 50 61 67 65 7e 5c 70 | 61 67 65 72 65 66 7b 66 |.Page~\p|ageref{f|
|000002d0| 6e 3a 77 72 69 74 65 7d | 20 5c 76 65 72 62 2b 77 |n:write}| \verb+w|
|000002e0| 72 69 74 65 28 29 2b 2e | 0d 0d 5c 6e 65 77 70 61 |rite()+.|..\newpa|
|000002f0| 67 65 0d 0d 0d 0d 0d 0d | |ge......| |
+--------+-------------------------+-------------------------+--------+--------+